<?php
session_start();
$email=$_SESSION['email'];
if(isset($_SESSION['lang']))
{
unset($_SESSION['lang']);
}
include ('header2.php');
 //include('databaseconnection.php');
 

if(isset ($_GET['msg'])){
                echo $_GET['msg'];
            }
			 echo   "<table width='100%' height='82' border='1' class='table' align='left'>
<tr bgcolor='#FFFFFF'>


<th >Term</th>
<th>Domain</th>
<th>Accepted Meaning</th>
<th>Language</th>
<th>Votes</th>
<th>More</th>
</tr>";
$result=mysql_query("SELECT * FROM terms");
if(!$result) echo "invalid";
while($row=mysql_fetch_array($result))
{
echo "<tr>";


//echo "<form action='moredetails.php' method='POST'>";
echo "<td width='20%'>".$row['term']."</td>";
$term=$row['term'];
echo "<td width='15%'>".$row['domain']."</td>";
$acc_mean=$row['accepted_meaning'];

echo "<td width='35%'>".$row['accepted_meaning']."</td>";
echo "<td width='15%'>".$row['language']."</td>";


$votes=$row['votes'];
echo "<td width='7%'><a href='votes.php?err=$term.$acc_mean'>".$votes."</a></td>";
echo "<td width='3%'><a href='moredetails.php?li=$term.$acc_mean.$votes'>More</a></td>";


echo "</tr>";
}

echo "</table>";            
include ('footer.php');
//</body>
//</html>
?>
